package com.dlyk.service;

import com.dlyk.bean.TClue;
import com.dlyk.query.ClueQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

public interface ClueService {
    /**
     * 线索管理分页查询
     * @param current
     * @return
     */
    PageInfo<TClue> getClueByPage(Integer current);

    /**
     * 导入Excel文件
     * @param inputStream
     */
    void importExcel(InputStream inputStream,String token);

    /**
     * 验证手机号是否存在
     * @param phone
     * @return
     */
    Boolean getPhone(String phone);

    /**
     * 录入线索
     * @param clueQuery
     * @return
     */
    int save(ClueQuery clueQuery);

    /**
     * 根据id查询线索详情
     * @param id
     * @return
     */
    TClue getClueById(Integer id);

    /**
     * 修改线索数据
     * @param clueQuery
     * @return
     */
    int updateClue(ClueQuery clueQuery);

    /**
     * 删除线索
     * @param id
     * @return
     */
    int deleteClue(Integer id);
}
